<?php
if(isset($_GET['link']))
{
	echo urldecode($_GET['link']);
}
?>

<a href="?link=<?php echo urlencode('http://www.baidu.com?c=abc&d=9');?>">link</a>